I'm not convinced this isn't a problem with Xcode on the Mac, but double case the...
authorrobertl <robertl>
Thu, 10 May 2007 20:20:13 +0000 (20:20 +0000)
committerrobertl <robertl>
Thu, 10 May 2007 20:20:13 +0000 (20:20 +0000)
cetus.c

diff --git a/cetus.c b/cetus.c
index 406824e02cfa6b85a7d1f2913d16e83006786923..6f17045cac5db4a8b94c5a0e1caf541da7806452 100644 (file)
--- a/cetus.c
+++ b/cetus.c
@@ -452,8 +452,7 @@ cetus_writewpt(const waypoint *wpt)
                rec->mon = 0xff;
                be_write16(&rec->year, 0xff);
        }
-
-       be_write32(&rec->longitude, (unsigned int) (wpt->longitude * 10000000.0));
+       be_write32(&rec->longitude, (unsigned int) (int) (wpt->longitude * 10000000.0));
        be_write32(&rec->latitude, (unsigned int) (wpt->latitude * 10000000.0));
        if ( wpt->altitude == unknown_alt ) {
                be_write32(&rec->elevation, -100000000);